package optimalServerSpaceCalculation;

import java.util.Comparator;


public class ParametersTupleComparator implements Comparator<ParametersTuple>{
	

		@Override
		/**** check the code below for int overrun and under run
		**/
		public int compare(ParametersTuple o1, ParametersTuple o2) {
			
			
			return(int)(o1.getCummSpaceOccupied() - o2.getCummSpaceOccupied());
//			if(o1.getTotalNumServers()<o2.getTotalNumServers()){
//			return (int) (o1.getCummSpaceOccupied()-o2.getCummSpaceOccupied());
//			} else {
//				return (int) (o2.getCummSpaceOccupied()-o1.getCummSpaceOccupied());
//			}
		}
		

	

}
